import { request } from '../request';

/** get list */
export function topicInfoList(params: Api.SystemManage.TopicInfoSearchParams) {
  return request<Api.SystemManage.TopicInfoList>({
    url: '/topicInfo/list',
    method: 'post',
    data: params
  });
}

/** save */
export function topicInfoSave(params?: Api.SystemManage.TopicInfoSaveParams) {
  return request<boolean>({
    url: '/topicInfo/add',
    method: 'post',
    data: params
  });
}

/** update */
export function topicInfoUpdate(params?: Api.SystemManage.TopicInfoUpdateParams) {
  return request<boolean>({
    url: '/topicInfo/update',
    method: 'post',
    data: params
  });
}

/** get */
export function topicInfoGet(params: { id: string }) {
  return request<Api.SystemManage.TopicInfo>({
    url: '/topicInfo/get',
    method: 'post',
    data: params
  });
}

/** del */
export function topicInfoDel(params: { id: string }) {
  return request<boolean>({
    url: '/topicInfo/del',
    method: 'post',
    data: params
  });
}

/** delBatch */
export function topicInfoDelBatch(params: { ids: Array<string> }) {
  return request<boolean>({
    url: '/topicInfo/delBatch',
    method: 'post',
    data: params
  });
}
